{% if not session_user %}
<script language="JavaScript">
  function pre_login()
  {
    var search_key_word=$('#search_key_word').attr("value");
    var set_login_action_url = '/j/subscribe/set_login_action?search_key_word='+search_key_word;

    $.getJSON(set_login_action_url, function(j){return true;});
  }
</script>
<div align="center">
  <div >
    <h2>
      您还没有登录 &nbsp; ·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;
    </h2>
  </div>
  <div name="xmw_operations" width="100%" >
    <table>
      <tr>
        <td width="25%" align="left">
          <div >
            <a  href="/login" >
              登录
            </a>
          </div>
        </td>



        <td width="50%" align="center">
          <div width="25%">
            <a  href="/register" >
              注册新用户
            </a>
          </div>
        </td>

        <td width="30%" align="right">
          <div width="25%">
            <a  href="#" onclick="javascript:hide_it_{{ seq }}();return false;" >
              关闭
            </a>
          </div>
        </td>
      </tr>
    </table>
  </div>
</div>
{% else %} 
	{% if already_sub %}
	<br>
	<div align="left">
	<h2> 重复订阅！</h2>
	您已经订阅了文章：<a href="{{url}}">{{title}}</a>，不必重复订阅。
	<br>
	</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  href="#" onclick="javascript:hide_it_{{ seq }}();return false;" >
              取消
            </a>
	<br>
	</div>
	
	{%else%}
<br>
<div align="left">
<h2> 订阅确认</h2>
文章：<a href="{{url}}">{{title}}</a>
<br>
<FORM   METHOD="get"   name="watchForm" id="watchForm"> 
 <INPUT   TYPE="radio"   id="watch" NAME="watch"   value="0"  checked >关注楼主 
  <INPUT   TYPE="radio"   id="watch"   NAME="watch"   value="1"> 关注所有 
  </FORM>
<br/>  
<a href="#" onclick="javascript:sub_ack_{{ seq }}();return false;">订阅</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  href="#" onclick="javascript:hide_it_{{ seq }}();return false;" >
              取消
            </a>
<br>
</div>
	{%endif%}
{% endif%}
